我一直在寻找几个小时,问朋友,但没有成功.所以我希望你们能帮助我.我的网站使用自定义字体,但IE(10)不支持我的方式.我不知道它支持其他方法.这是我的:
@font-face { font-family: shardee; src:url('fonts/Shardee.ttf'); }
Run Code Online (Sandbox Code Playgroud)
Internet Explorer中没有必要使用自定义字体,但这样会很好.
当Internet Explorer不知道字体时,它使用其默认字体.但问题是,自定义字体的字体大小是完美的,但是Internet Explorer的默认字体太大了.我尝试使用IE特定的css代码修复它,但它根本不起作用.我在Interner Explorer中使用以下css代码:
<!--[if IE]>
<style>
#menu ul li{ font-size:15px; }
</style>
<![endif]-->
Run Code Online (Sandbox Code Playgroud)
我也通过外部样式表尝试了它,看起来像这样:
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri() ?>/style/ie.css" />
<![endif]-->
Run Code Online (Sandbox Code Playgroud)
我在php中使用的函数是一个wordpress函数,它将您带到您的网站的路径.如果您不使用wordpress,则可以忘记该代码并将其留空.
问题不在于路径,路径是正确的.我查看了浏览器中的源代码,它向我展示了我在ie.css中的代码.ie.css中的代码与上面的代码完全相同,但没有标签ect.
我希望你们能帮我解决这个问题.据我所知,2种解决方案是可行的.让ie特定的css工作,或者给我一个在IE中创建自定义字体的方法.我使用的是Internet Explorer 10版.
你可以在这里看到这个网站,但是一旦修复它就会消失,因为一旦它被修复,我就不需要把它放在子域上了.
亲切的问候,巴特罗洛夫斯
我试图运行以下命令:
php artisan migrate
Run Code Online (Sandbox Code Playgroud)
我从服务器收到以下响应:
HP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/stagaires/bart/laravel2/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87
Stack trace:
#0 /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array)
#1 /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(289): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#2 /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Logger.php(565): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)
#3 /var/www/stagaires/bart/laravel2/laravel/vendor/laravel/framework/src/Illuminate/Log/Writer.php(202): Monolog\Logger->error(Object(UnexpectedValueException), Array)
#4 /var/www/stagaires/bart/laravel2/la in /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 87
PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/stagaires/bart/laravel2/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /var/www/stagaires/bart/laravel2/laravel/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:87
Stack …Run Code Online (Sandbox Code Playgroud) 我正在使用wordpress的功能the_excerpt()。它工作正常,但结果仅显示我帖子的5个。如何使其显示所有帖子,而不是仅显示5个最新帖子?
我的代码:
<?php
$lastposts = get_posts();
foreach ( $lastposts as $post ) :
setup_postdata( $post ); ?>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p style="font-size:12;"><em>Post date: <?php the_date(); ?></em></p>
<?php the_excerpt() ?>
<a href="<?php echo get_permalink(); ?>"> Read more...</a>
wp_reset_postdata();
php endforeach; ?>
Run Code Online (Sandbox Code Playgroud) 我们正在使用Ionic(+ Cordova)构建一个Android应用程序.
这一切都可以在我的浏览器中运行,但是当我构建它并运行.apk时会发生这种情况:
外部图片不会出现,嵌入的谷歌地图仍然是空的.我们的index.html上的以下代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<script src="js/ng-cordova.min.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
</head>
<body ng-app="starter">
<ion-pane>
<ion-header-bar class="bar-stable">
</ion-header-bar>
<ion-content> …Run Code Online (Sandbox Code Playgroud)