0

I am new of Font awesome. I have written a simple example following the Font awesome demo, but it did not work? it did not display the camera, why? please help me. The simple example is:

<!DOCTYPE html>
<html>
<head>
    <title>test</title>
    <meta charset="utf-8" />
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">

</head>
<body >
    <i class="fa fa-camera-retro"></i> fa-camera-retro
</body>
</html>
fujianfeng
  • 15
  • 1
  • 6

1 Answers1

1

You have to add http: or https: prefix to the URL. For example

<link rel="stylesheet" type="text/css"
      href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">

You asked some previous questions about jqGrid. See the demo from the answer as an example of usage of Font awesome inside of jqGrid.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798
  • Thank you! But this example can not display icons in my IE9.0. another question: Would you please help me on [this topic](http://stackoverflow.com/questions/20319725/jqgrid-how-to-add-a-row-in-cell-editing-model) – fujianfeng Dec 03 '13 at 03:24
  • @fujianfeng: Thanks, I fixed the code of the demo to work in IE8/IE9. About your another question: sorry, but I don't understand it. Could you modify the text of the question to include more detailed. The statements like "... to make the jqGrid as Excel style" can be interpreted in different ways. The reference on [another product](http://handsontable.com/index.html) looks for me like [cell editing](http://www.trirand.com/jqgridwiki/doku.php?id=wiki:cell_editing). – Oleg Dec 03 '13 at 07:18