I used:
wp_register_style("jquery.myplugin-1.0.css", "http://wordpress.loc/wp-content/plugins/myplugin/css" , "jquery.myplugin-1.0.css" , array(), "1.0");
wp_enqueue_style( 'jquery.myplugin-1.0.css');
But it get to
http://wordpress.loc/wp-content/plugins/myplugin/css?ver=3.4.2
What’s possibly wrong I’m doing?
This works
But this is better:
If you register and enqueue at the same time all can be done with wp_enqueu_style, it has the same arguments.
Second you used your url hardcoded. In my second example the plugin url will be dynamic so it will work on every WordPress without changing the url.